<?
        require_once("../inc/Users.php");
        $results = GetUsers();
?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Customer</title>
        <link type="text/css" rel="stylesheet" href="../inc/bootstrap.css" />
    </head>
    
    <body>
        <?php include("../inc/header.php"); ?>
        <div class="container">
        <div>
        <?php include("../inc/nav.php"); ?>
        </div>
        	<div id="contents">
        		<table class="table table-striped table-bordered table-condensed table-hover">
                	<thead>                    
             		   	<th>First Name</th><th>Last Name</th><th>Actions</th>
            		</thead>
            		<? while($rs = $results->fetch_assoc()): ?>
                	<tr>
                    	<td><?=$rs['FirstName']?></td>
                    	<td><?=$rs['LastName']?></td>
                    	<td>
                        	<a href="details.php?id=<?=$rs['id']?>">Details</a>
                        	<a href="edit.php?id=<?=$rs['id']?>">Edit</a>
                        	<a href="delete.php?id=<?=$rs['id']?>">Delete</a>
                    	</td>
                	</tr>
            		<? endwhile; ?>
        		</table>
                </div>
         </div>
    </body>
</html>